#include "UBuilding.h"
#include "UUnitOrBuildingType.h"
//#include "UBuildWindow.h" TODO Buildings get a window when build
#include "../UWindowManager.h"
#include "../UWindowThemer.h"

using namespace std;

vector<TRectangle> BuildingHealthBars;

TBuilding::TBuilding(TBuildingType* type, int PosX, int PosY, float PosZ)
	: TUnitOrBuilding(PosX, PosY, PosZ)
{
	Type = type;
	 //TODO Buildings get a window when build
	//WindowManager->NewWindow(ScreenWidth-100, 100, ScreenWidth, 500, new TBuildWindow(this), wt, Type->Name, Type->WindowTag);
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TGUIBuilding::TGUIBuilding(boost::shared_ptr<const TBuilding> building)
{
	Building = building;
}



